how terraform commands works